package com.xiaoshuidi.cloud.module.rooms.controller.admin.roomhouse.vo;

import lombok.Builder;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class AllRoomHouseNameVO {
    private Boolean isConcentrated;
    private String apartmentAreaName;
    private String building;
    private String unit;

    @Override
    public String toString() {
        if(isConcentrated){
            return apartmentAreaName + building + "栋";
        } else {
            return apartmentAreaName + building + "栋" + unit + "单元" ;
        }
    }
}
